package com.teatrace.model.pack;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.teatrace.model.base.Customer;

@Entity
public class Goods {

	@Id
	@Column(name="goods_id")
	private long goodsId;//商品编号
	private String name; //名称
	private String time;//购买时间
	private String wrapper;//包装方式 
		
	@ManyToOne
	@JoinColumn(name="customer_id")
	private Customer customer;//客户
	
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	public long getGoodsId() {
		return goodsId;
	}
	public String getName() {
		return name;
	}
	public String getWrapper() {
		return wrapper;
	}
	public void setGoodsId(long goodsId) {
		this.goodsId = goodsId;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setWrapper(String wrapper) {
		this.wrapper = wrapper;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
}
